# Copyright (C) 2023 - 2024 Advanced Micro Devices, Inc.  All rights reserved.
# SPDX-License-Identifier: MIT

collect (PROJECT_LIB_HEADERS xsecure_aes.h)
collect (PROJECT_LIB_HEADERS xsecure_aes_core_hw.h)
collect (PROJECT_LIB_HEADERS xsecure_cryptochk.h)
collect (PROJECT_LIB_HEADERS xsecure_ecdsa_rsa_hw.h)
collect (PROJECT_LIB_HEADERS xsecure_elliptic.h)
collect (PROJECT_LIB_HEADERS xsecure_ellipticcrvs.h)
collect (PROJECT_LIB_HEADERS xsecure_kat.h)
collect (PROJECT_LIB_HEADERS xsecure_rsa_core.h)
collect (PROJECT_LIB_HEADERS xsecure_sha.h)
collect (PROJECT_LIB_HEADERS xsecure_sss.h)
collect (PROJECT_LIB_HEADERS xsecure_utils.h)

collect (PROJECT_LIB_SOURCES xsecure_aes.c)
collect (PROJECT_LIB_SOURCES xsecure_cryptochk.c)
collect (PROJECT_LIB_SOURCES xsecure_elliptic.c)
collect (PROJECT_LIB_SOURCES xsecure_ellipticcrvs.c)
collect (PROJECT_LIB_SOURCES xsecure_kat.c)
collect (PROJECT_LIB_SOURCES xsecure_rsa_core.c)
collect (PROJECT_LIB_SOURCES xsecure_sha.c)
collect (PROJECT_LIB_SOURCES xsecure_sss.c)
collect (PROJECT_LIB_SOURCES xsecure_utils.c)

if( NOT (
		("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "cortexa72") OR
		("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "cortexr5")
	)
  )
  collect (PROJECT_LIB_HEADERS xsecure_rsa_ipihandler.h)
  collect (PROJECT_LIB_SOURCES xsecure_rsa_ipihandler.c)
  collect (PROJECT_LIB_HEADERS xsecure_elliptic_ipihandler.h)
  collect (PROJECT_LIB_SOURCES xsecure_elliptic_ipihandler.c)
  collect (PROJECT_LIB_HEADERS xsecure_sha_ipihandler.h)
  collect (PROJECT_LIB_SOURCES xsecure_sha_ipihandler.c)
  collect (PROJECT_LIB_HEADERS xsecure_aes_ipihandler.h)
  collect (PROJECT_LIB_SOURCES xsecure_aes_ipihandler.c)
  collect (PROJECT_LIB_HEADERS xsecure_kat_ipihandler.h)
  collect (PROJECT_LIB_SOURCES xsecure_kat_ipihandler.c)
  collect (PROJECT_LIB_HEADERS xsecure_cmd.h)
  collect (PROJECT_LIB_HEADERS xsecure_init.h)
  collect (PROJECT_LIB_SOURCES xsecure_init.c)
endif()
